package com.erqi.Controllers;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.erqi.pojo.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Author king
 * @Date 2020/7/15 09:13
 * @Version 1.0
 */
@Controller
public class dataController {





    @RequestMapping("/get")
    @ResponseBody
    public String getDataList(){
        return JSON.toJSONStringWithDateFormat(Message.msgList,"yyyy-MM-dd HH:mm:ss", SerializerFeature.WriteDateUseDateFormat);
    }







}
